package com.jinzhi.jzweb.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import org.springframework.stereotype.Service;

import com.jinzhi.jzweb.dao.TrainingCertificatesDao;
import com.jinzhi.jzweb.domain.TrainingCertificatesDO;
import com.jinzhi.jzweb.service.TrainingCertificatesService;
import com.jinzhi.common.base.CoreServiceImpl;

import java.util.List;
import java.util.Map;

/**
 * 
 * <pre>
 * 培训证书
 * </pre>
 * <small> 2020-06-02 09:10:46 | lance</small>
 */
@Service
public class TrainingCertificatesServiceImpl extends CoreServiceImpl<TrainingCertificatesDao, TrainingCertificatesDO> implements TrainingCertificatesService {

	@Override
	public Page<TrainingCertificatesDO> findPageList(int current, int number, Long userId) {

		Page<TrainingCertificatesDO> page = new Page<TrainingCertificatesDO>(current , number);
		return page.setRecords(this.baseMapper.findPageList(page , userId));
	}

	@Override
	public String selCerNumber(String cerNums){
		return baseMapper.selCerNumber(cerNums);
	}
	
	@Override
	public String selByCerNumber(String cerNums){
		return baseMapper.selByCerNumber(cerNums);
	}

	@Override
	public List<Map> selImgUrls(Map map){
		return baseMapper.selImgUrls(map);
	}

	@Override
	public List<Map> selNoSaleImgUrls(Map map){
		return baseMapper.selNoSaleImgUrls(map);
	}
}
